package com.zhoupeisen.bean;

import org.springframework.context.annotation.Bean;

/**
 * @ClassName UserConfiguration
 * @Description TODO
 * @Author Administrator
 * @Data 下午 09:12
 * @Version 1.0
 **/
public class UserConfiguration {
    @Bean
    public User getUser(){
        User user = new User();
        user.setName("森");
        user.setAge(18);
        System.out.println("获得User对象");
        return user;
    }
    @Bean
    public void print(){
        System.out.println("UserConfiguration----print");
    }
}
